package com.runen.wnhz.runen.ui.adapter.puadapter;

import android.content.Context;
import android.text.TextUtils;
import android.widget.ImageView;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.runen.wnhz.runen.R;
import com.runen.wnhz.runen.bean.MyOrderBean;
import com.runen.wnhz.runen.data.entity.MyEvaluationBean;

import java.util.List;

/**
 * 描述： 我的订单资料
 * 作者： 天天童话丶
 * 时间： 2018/6/1.
 */

public class MyQuestionBankAdapter extends BaseQuickAdapter<MyEvaluationBean.DataBean.ListBean.TestListBean, BaseViewHolder> {
    private Context mContext;

    public MyQuestionBankAdapter(Context context, List<MyEvaluationBean.DataBean.ListBean.TestListBean> data) {
        super(R.layout.item_mine_questionbank, data);
        this.mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder helper,MyEvaluationBean.DataBean.ListBean.TestListBean item) {
        TextView photoIv = helper.getView(R.id.item_mine_question);
        if (!TextUtils.isEmpty(item.getTest_name())) {
            photoIv.setText(item.getTest_name());
          /*  Glide.with(mContext)
                    .load(item.getGoods_pic())
                    .into(photoIv);*/
        } else {

        }
        helper.addOnClickListener(R.id.item_mine_question);
    }
}